package com.eshop.modules.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eshop.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "签到记录表", value = "UserSign对象")
public class UserSign extends BaseDomain {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("剩余积分")
    private Integer balance;
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    @ApiModelProperty("获得积分")
    private Integer number;
    @ApiModelProperty("签到说明")
    private String title;
    @ApiModelProperty("用户uid")
    private Long uid;

    public static class UserSignBuilder {
        private Integer balance;
        private Long id;
        private Integer number;
        private String title;
        private Long uid;

        UserSignBuilder() {
        }

        public UserSignBuilder balance(Integer balance2) {
            this.balance = balance2;
            return this;
        }

        public UserSign build() {
            return new UserSign(this.id, this.uid, this.title, this.number, this.balance);
        }

        public UserSignBuilder id(Long id2) {
            this.id = id2;
            return this;
        }

        public UserSignBuilder number(Integer number2) {
            this.number = number2;
            return this;
        }

        public UserSignBuilder title(String title2) {
            this.title = title2;
            return this;
        }

        public String toString() {
            return "UserSign.UserSignBuilder(id=" + this.id + ", uid=" + this.uid + ", title=" + this.title + ", number=" + this.number + ", balance=" + this.balance + ")";
        }

        public UserSignBuilder uid(Long uid2) {
            this.uid = uid2;
            return this;
        }
    }

    public void setBalance(Integer balance2) {
        this.balance = balance2;
    }

    public void setId(Long id2) {
        this.id = id2;
    }

    public void setNumber(Integer number2) {
        this.number = number2;
    }

    public void setTitle(String title2) {
        this.title = title2;
    }

    public void setUid(Long uid2) {
        this.uid = uid2;
    }

    public String toString() {
        return "UserSign(id=" + getId() + ", uid=" + getUid() + ", title=" + getTitle() + ", number=" + getNumber() + ", balance=" + getBalance() + ")";
    }

    public static UserSignBuilder builder() {
        return new UserSignBuilder();
    }

    public UserSign(Long id2, Long uid2, String title2, Integer number2, Integer balance2) {
        this.id = id2;
        this.uid = uid2;
        this.title = title2;
        this.number = number2;
        this.balance = balance2;
    }

    public UserSign() {
    }

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserSign;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserSign)) {
            return false;
        }
        UserSign other = (UserSign) o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (!UserSign.super.equals(o)) {
            return false;
        }
        Long this$id = getId();
        Long other$id = other.getId();
        if (this$id != null ? !this$id.equals(other$id) : other$id != null) {
            return false;
        }
        Long this$uid = getUid();
        Long other$uid = other.getUid();
        if (this$uid != null ? !this$uid.equals(other$uid) : other$uid != null) {
            return false;
        }
        Integer this$number = getNumber();
        Integer other$number = other.getNumber();
        if (this$number != null ? !this$number.equals(other$number) : other$number != null) {
            return false;
        }
        Integer this$balance = getBalance();
        Integer other$balance = other.getBalance();
        if (this$balance != null ? !this$balance.equals(other$balance) : other$balance != null) {
            return false;
        }
        String this$title = getTitle();
        String other$title = other.getTitle();
        if (this$title == null) {
            if (other$title == null) {
                return true;
            }
        } else if (this$title.equals(other$title)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        int result = UserSign.super.hashCode();
        Long $id = getId();
        int i2 = result * 59;
        int hashCode = $id == null ? 43 : $id.hashCode();
        Long $uid = getUid();
        int i3 = (i2 + hashCode) * 59;
        int hashCode2 = $uid == null ? 43 : $uid.hashCode();
        Integer $number = getNumber();
        int i4 = (i3 + hashCode2) * 59;
        int hashCode3 = $number == null ? 43 : $number.hashCode();
        Integer $balance = getBalance();
        int i5 = (i4 + hashCode3) * 59;
        int hashCode4 = $balance == null ? 43 : $balance.hashCode();
        String $title = getTitle();
        int i6 = (i5 + hashCode4) * 59;
        if ($title != null) {
            i = $title.hashCode();
        }
        return i6 + i;
    }

    public Long getId() {
        return this.id;
    }

    public Long getUid() {
        return this.uid;
    }

    public String getTitle() {
        return this.title;
    }

    public Integer getNumber() {
        return this.number;
    }

    public Integer getBalance() {
        return this.balance;
    }
}
